﻿using System.Linq;
using Bewise.SmartIndexManager.Core.Classes.Types;
using System.Collections.Generic;

namespace Bewise.SmartIndexManager.Core.Classes.Database
{
    //public class TargetObjectContainer
    //{
    //    public TargetObjectContainer()
    //    {
    //        ConnectionStringHost = new ConnectionStringHost();
    //        TypeOfObjectsManager = new TypeOfObjects();
    //    }

    //    public TypeOfObjects TypeOfObjectsManager { get; set; }
    //    public ConnectionStringHost ConnectionStringHost { get; set; }

    //    public string Name
    //    {
    //        get { return ConnectionStringHost.Name; }
    //    }

    //    public string DataSource
    //    {
    //        get { return ConnectionStringHost.ConnectionStringBuilder.DataSource; }
    //        set { ConnectionStringHost.ConnectionStringBuilder.DataSource = value; }
    //    }

    //    public bool IsIntegratedSecurity
    //    {
    //        set { ConnectionStringHost.ConnectionStringBuilder.IntegratedSecurity = value; }
    //        get { return ConnectionStringHost.ConnectionStringBuilder.IntegratedSecurity; }
    //    }

    //    public bool IsSqlServerAuthentication
    //    {
    //        set { ConnectionStringHost.ConnectionStringBuilder.IntegratedSecurity = value; }
    //        get { return !IsIntegratedSecurity; }
    //    }

    //    public string SqlUserName
    //    {
    //        get { return !IsIntegratedSecurity ? ConnectionStringHost.ConnectionStringBuilder.UserID : null; }
    //        set { ConnectionStringHost.ConnectionStringBuilder.UserID = value; }
    //    }

    //    public string SqlUserPassword
    //    {
    //        get { return !IsIntegratedSecurity ? ConnectionStringHost.ConnectionStringBuilder.Password : null; }
    //        set { ConnectionStringHost.ConnectionStringBuilder.Password = value; }
    //    }

    //    public List<string> Databases { get; set; }
    //}
}